<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 解决异步回调的问题
        new Promise(function(resolve, reject) {
            // resolve 成功调用
            // reject 失败调用
        })
    </script>
</body>

</html>